import http from '../../utils/http'



// 拼团列表
const marketingGroupInsList = (data) => {
  return http.get(`/marketing/marketingGroupIns/list`,data)
}
// 评团定义列表marketing/marketingGroupDef/list
const marketingGroupDefList = (data) => {
  return http.get(`/marketing/marketingGroupDef/list`,data)
}
// 发起助力
const marketingGroupInsCreate = (data) => {
  return http.post(`/marketing/marketingGroupIns/create`,data)
}
// 前往助力页面

const getPoster = (data) => {
  return http.get(`/marketing/marketingGroupIns/getPoster`,data)
}
// 获取助力用户列表

const getMarketingGroupInsByGroupId = (data) => {
  return http.get(`/marketing/marketingGroupIns/getMarketingGroupInsByGroupId`,data)
}
// 帮他助力
const joinGroup = (data) => {
  return http.put(`/marketing/marketingGroupIns/joinGroup`,data)
}
// 开箱

const updateOrderBlessingBagStatus = (data) => {
  return http.post(`/order/orderRecord/updateOrderBlessingBagStatus`,data)
}
// 查询活动是否有效
const getMarketingGroupDefStatus = (data) => {
  return http.get(`/marketing/marketingGroupDef/getMarketingGroupDefStatus`,data)
}



export default {
  marketingGroupInsList,
  marketingGroupDefList,
  marketingGroupInsCreate,
  getPoster,
  getMarketingGroupInsByGroupId,
  joinGroup,
  updateOrderBlessingBagStatus,
  getMarketingGroupDefStatus
}